package com.rui.study.algorithm.L_深入拆解JVM_Java语法糖.foreach;

import java.util.Collection;

/**
 * @program: study
 * @description:
 * @author: Yaowr
 * @create: 2018-12-21 09:37
 **/
public class Demo {

    public void foo(Collection c) {
        for (Object o : c) {
            System.out.println(o.hashCode());
        }
    }

    public void bar(String[] array) {
        for (Object o : array) {
            System.out.println(o.hashCode());
        }
    }
}
